package com.ymatou.iapi.couponmanage.testcase;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.iapi.couponmanage.parameter.CreateCouponBean;
import com.ymatou.iapi.couponmanage.service.CreateCouponCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.*;
import com.ymt.utils.tag.*;
/**
*运营创建平台批次
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_CreateCoupon{
	private static CreateCouponBean createcouponBean;
	private static CreateCouponCall createcouponCall;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("运营创建平台批次");
	}

	@Before
	public void caseUp() {
		createcouponBean=new CreateCouponBean();
		createcouponCall=new CreateCouponCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(createcouponCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CreateCoupon_001() {
		Logger.start(true,"创建优惠券-平台券");
		try {
			//TODO 补全case代码
			org.junit.Assert.fail();
			createcouponCall.setData(createcouponBean);
			createcouponCall.callService();			
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}